package com.mc.moring.bean

/**
 *
 * @ProjectName:    Monicash
 * @Package:        com.moring.moring.bean
 * @ClassName:      LastLoanDetailBean
 * @Author:         ANWEN
 * @CreateDate:     2024/1/14 23:48
 * @UpdateUser:
 * @UpdateDate:     2024/1/14 23:48
 * @UpdateRemark:
 * @Version:
 */
data class LastLoanDetailBean(
    val code: String,
    val `data`: DataBean,
    val msg: String
)

data class DataBean(
    val amount: Any,
    val applyAmount: String,
    val baseRateLoanList: Any,
    val currPaymentIndex: Int,
    val customerName: String,
    val documentUrl: Any,
    val dueDate: String,
    val everyPeriodLimitDays: Int,
    val everyPeriodRepayAmount: String,
    val extendShowStatus: Int,
    val extendStartDueDays: Any,
    val extendingRecords: Any,
    val groupId: Int,
    val hasPenaltyFree: Int,
    val interestPreferentialRate: Any,
    val lendOutTime: Any,
    val loanInfoVoList: List<LoanInfoVo>,
    val oldLoanInfo: Any,
    val overDueDays: Int,
    val paymentId: String,
    val penaltyInterestRate: String,
    val periods: Int,
    val status: Int,
    val taxFee: String,
    val techServiceFee: String,
    val totalExciseDuty: Any,
    val totalInterestAmount: String,
    val totalLateRepaymentFee: Any,
    val totalLimitDays: Int,
    val totalPaidAmount: Any,
    val totalPenaltyInterest: Any,
    val totalPreLoanFee: Any,
    val totalRealSurplusPenaltyAmount: Any,
    val totalReceiveAmount: Any,
    val totalSurplusAmount: String,
    val totalSurplusFeeAmount: Any,
    val totalSurplusInterestAmount: Any,
    val totalSurplusPenaltyAmount: String,
    val totalSurplusPrincipalAmount: Any
){
    fun isOver(): Boolean {
        return ((overDueDays ?: 0) > 0)
    }
}